const { Schema } = require("mongoose");
const baseModel = require("./baseModel");

module.exports = new Schema({
  username: {
    type: String,
    required: true,
    unique: true,
  },
  password: {
    type: String,
    required: true,
    select: false,
  },
  email: {
    type: String,
    unique: true,
  },
  phone: {
    type: String,
    unique: true,
  },
  avatar: {
    type: String,
    default: "default.jpg",
  },
  subscribeCount: {
    type: Number,
    default: 0,
  },
  fansCount: {
    type: Number,
    default: 0,
  },
  ...baseModel,
});
